package com.example.designpatterns.bridge;

/**
 * 定义客户端测试桥接模式
 */
public class Client {
    public static void main(String[] args) {
        FoldedPhone phone = new FoldedPhone(new XiaoMi());
        phone.open();
        phone.close();
        phone.call();


        System.out.println();
        FoldedPhone phone1 = new FoldedPhone(new Vivo());
        phone1.open();
        phone1.close();
        phone1.call();

        UpRightPhone phone2 = new UpRightPhone(new XiaoMi());
        phone2.open();
        phone2.close();
        phone2.call();

    }
}
